home *** CD-ROM | disk | FTP | other *** search
- Path: news.microsoft.com!news
- From: a-cnadc@microsoft.com (Dann Corbit)
- Newsgroups: comp.lang.c++
- Subject: Re: Tool for converting C++ to C?
- Date: 7 Feb 1996 18:37:18 GMT
- Organization: Microsoft Corporation
- Message-ID: <4fargu$2st@news.microsoft.com>
- References: <3117842D.41C67EA6@uni-paderborn.de>
- NNTP-Posting-Host: 157.57.171.202
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.93.14
-
- In article <3117842D.41C67EA6@uni-paderborn.de>, alpha@uni-paderborn.de says...
- >
- >Hallo everybody,
- >
- >is there a tool that converts C++ source code to C source code?
- >Can GNU C++ do this? How?
- >
- >Answers by e-mail prefered.
- >
- >Thanks in advance
- >
- >Andreas
- Many C++ compilers will preprocess the C++ source and produce C.
- Real ugly C. I don't know if GNU can do it, but if you check the
- build settings there may be a preprocess to standard output
- switch. The best way to translate any kind of application is
- to do it by hand. If you need C because you don't have a C++
- compiler on some particular architecture but you do have C,
- preprocessing may produce something that compiles, but I would
- hate to have to maintain it.
- --
- The opinions expressed in this message are my own personal views
- and do not reflect the official views of Microsoft Corporation.
-
-